﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication6
{
    class Program
    {
        public static void Main(string[] args)
        {
            Console.WriteLine("-------------欢迎进入游戏世界---------------");
            Console.WriteLine("************************");
            Console.WriteLine("*******猜拳，开始*******");
            Console.WriteLine("************************");
            Console.WriteLine("出拳规则：1.剪刀 2.石头 3.布");

            Console.WriteLine("请选择对方角色（1.刘备 2.曹操 3.孙权）");
            int key = int.Parse(Console.ReadLine());
            yx sb = new yx();
           
            switch (key)
            {
                case 1:
                  

                    sb.Dsm = "刘备";

                    Console.WriteLine("请输入您的名字：");
                    string myname = Console.ReadLine();


                    Console.WriteLine("{0} VS {1} 对战",myname,sb.Dsm);


                    Console.WriteLine("开始游戏吗？（y/n）");
                    char a = char.Parse(Console.ReadLine());

                    switch (a)
                    {
                        case 'y':

                            yx.cq(sb.Dsm, myname);
                            break;
                        case 'n':

                            Console.WriteLine("怂逼！这么怂！还打个鬼游戏，浪费表情，滚！！！");
                            break;

                        default:
                            break;
                    }

                    break;
                case 2:
                    
                    sb.Dsm = "曹操";

                    Console.WriteLine("请输入您的名字：");
                    string myname1 = Console.ReadLine();

                    Console.WriteLine("{0} VS {1} 对战", myname1, sb.Dsm);


                    Console.WriteLine("开始游戏吗？（y/n）");
                    char b = char.Parse(Console.ReadLine());

                    switch (b)
                    {
                        case 'y':

                            yx.cq(sb.Dsm, myname1);
                            break;
                        case 'n':

                            Console.WriteLine("怂逼！这么怂！还打个鬼游戏，浪费表情，滚！！！");
                            break;

                        default:
                            break;
                    }
                    break;

                case 3:
                    sb.Dsm = "孙权";

                    Console.WriteLine("请输入您的名字：");
                    string myname2 = Console.ReadLine();

                    Console.WriteLine("{0} VS {1} 对战", myname2, sb.Dsm);

                    Console.WriteLine("开始游戏吗？（y/n）");
                    char c = char.Parse(Console.ReadLine());


                    switch (c)
                    {
                        case 'y':

                            yx.cq(sb.Dsm, myname2);
                            break;
                        case 'n':

                            Console.WriteLine("怂逼！这么怂！还打个鬼游戏，浪费表情，滚！！！");
                            break;

                        default:
                            break;
                    }


                    break;



                default:
                    break;
            }


        }

       

    }
}
